#!/bin/bash
#
cols=`tput cols`
str=$1
length=$2
test -z "$1" && str='='
test -z "$2" && length=1
for (( i = 0; i < $cols/$length; i++ )); do echo -n "$str"; done; echo ""